﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master"  Inherits="System.Web.Mvc.ViewPage<EnquiryBasicReportViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Basic Report
</asp:Content>

<asp:Content ID="ContentHeader" ContentPlaceHolderID="ContentHeader" runat="server">
Basic Report
</asp:Content>

<asp:Content ID="javascript" ContentPlaceHolderID="Javascript" runat="server">
    
    <script type="text/javascript"></script>
</asp:Content>

<asp:Content ID="ContentSubNav" ContentPlaceHolderID="ContentSubNav" runat="server">
<% Html.RenderPartial("Partial/ReportSubMenu"); %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class="clearfix" style="border-bottom:2px solid red;margin:0 0 10px;padding:0 0 15px;">
    <div class="faux_form">
        <fieldset>
            <form method="get" action="/Enquiry/Report">
                <div class="clearfix">
                    
                    <label for="" class="">Date From:</label>
                    <%= Html.TextBox("From", Model.From, new { @class = "dateInput date" })%>
                </div>
                
                <div class="clearfix">
                    <label for="" class="">Date To:</label>
                    <%= Html.TextBox("To", Model.To, new { @class = "dateInput date" })%>
                </div>
    
                <input type="submit" value="Filter">
            </form>
        </fieldset>
    </div>
...        <%= Html.ActionLink("Download", "ReportDownload", this.ViewContext.GetAllExistingRouteValues(), new Dictionary<string, object> { { "Title", "Download" }, { "Class", "btnDownload" } })%>
    <table>
        <thead>
            <tr>
                <th>Source</th>
                <th>Enquiry</th>
                <th>Complaint</th>
                <th>Total</th>
                <th>Cost</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Website</td>
                <td><%= Model.CompletedWebsiteEnquiryCount.ToString() %> </td>
                <td><%= Model.CompletedWebsiteComplaintCount.ToString() %> </td>
                <td><%= Model.CompletedWebsiteCount.ToString() %> </td>
                <td><%= Model.CompletedWebsiteCompensation.ToString("C") %> </td> 
            </tr>
             <tr>
                <td>Email</td>
                <td><%= Model.CompletedEmailEnquiryCount.ToString() %> </td>
                <td><%= Model.CompletedEmailComplaintCount.ToString() %> </td>
                <td><%= Model.CompletedEmailCount.ToString() %> </td>
                <td><%= Model.CompletedEmailCompensation.ToString("C") %> </td> 
            </tr>
              <tr>
                <td>Telephone</td>
                <td><%= Model.CompletedTelephoneEnquiryCount.ToString() %> </td>
                <td><%= Model.CompletedTelephoneComplaintCount.ToString() %> </td>
                <td><%= Model.CompletedTelephoneCount.ToString() %> </td>
                <td><%= Model.CompletedTelephoneCompensation.ToString("C") %> </td> 
            </tr>
            
              <tr>
                <td>Letter</td>
                <td><%= Model.CompletedLetterEnquiryCount.ToString() %> </td>
                <td><%= Model.CompletedLetterComplaintCount.ToString() %> </td>
                <td><%= Model.CompletedLetterCount.ToString() %> </td>
                <td><%= Model.CompletedLetterCompensation.ToString("C") %> </td> 
            </tr>
            
             <tr>
                <td>Retailer</td>
                <td><%= Model.CompletedRetailerEnquiryCount.ToString() %> </td>
                <td><%= Model.CompletedRetailerComplaintCount.ToString() %> </td>
                <td><%= Model.CompletedRetailerCount.ToString() %> </td>
                <td><%= Model.CompletedRetailerCompensation.ToString("C") %> </td>
            </tr>
            
            <tr>
                <td><strong>Tota</strong>l</td>
                <td><strong><%= Model.CompletedEnquiryCount.ToString() %></strong></td>
                <td><strong><%= Model.CompletedComplaintCount.ToString() %></strong></td>
                <td><strong><%= Model.CompletedCount.ToString() %></strong></td>
                <td><strong><%= Model.CompletedTotal.ToString("C") %></strong></td>
            </tr>
        </tbody>
    </table>

</div>       
 
 
</asp:Content>
